package net.showcal.api.request.mobile;


import net.showcal.api.ApiRuleException;
import net.showcal.api.XiniuRequest;
import net.showcal.api.internal.util.XiniuHashMap;
import net.showcal.api.response.mobile.CateCommentCreateResponse;

import java.util.Map;

/**
* <p/>
* <pre>
 * ***************************************************************
 *  Copyright (c) 2014 –苏州犀牛网络科技有限公司
    *  Title: com.xiniunet.thermalcontrol.helper.ThermalcontrolHelperImpl
    *  Description: thermalcontrol Request
    *  @since
    *  @author 顾志雄
    * ***************************************************************
 * </pre>
*/
public class CateCommentCreateRequest implements XiniuRequest<CateCommentCreateResponse> {
    private XiniuHashMap udfParams = new XiniuHashMap();
    /**
     * 获取API名称
     */
    @Override
    public String getApiMethodName() {
        return "thermalcontrol.cateComment.create";
    }

    /**
     * 用户ID 
     */
    private Long userId;
    /**
     * 关联MB_SYNC_HEAT表中的ID 
     */
    private Long heatId;
    /**
     * 瘦咖ID 
     */
    private Long showcalId;
    /**
     * 瘦咖评论 瘦咖的评论内容
     */
    private String showcalComment;

    public Long getUserId(){
        return userId;
    }

    public void setUserId(Long userId){
        this.userId=userId;
    }

    public Long getHeatId(){
        return heatId;
    }

    public void setHeatId(Long heatId){
        this.heatId=heatId;
    }

    public Long getShowcalId(){
        return showcalId;
    }

    public void setShowcalId(Long showcalId){
        this.showcalId=showcalId;
    }

    public String getShowcalComment(){
        return showcalComment;
    }

    public void setShowcalComment(String showcalComment){
        this.showcalComment=showcalComment;
    }

    @Override
    public Map<String, String> getTextParams() {
        XiniuHashMap txtParams = new XiniuHashMap();
                txtParams.put("userId", this.userId);
                txtParams.put("heatId", this.heatId);
                txtParams.put("showcalId", this.showcalId);
                txtParams.put("showcalComment", this.showcalComment);
        if(this.udfParams != null) {
            txtParams.putAll(this.udfParams);
        }
        return txtParams;
    }

    @Override
    public Long getTimestamp() {
    return null;
    }

    @Override
    public void setTimestamp(Long timestamp) {

    }

    @Override
    public Class getResponseClass() {
        return CateCommentCreateResponse.class;
    }

    @Override
    public void check() throws ApiRuleException {
    }

    @Override
    public Map<String, String> getHeaderMap() {
        return null;
    }

    @Override
    public void putOtherTextParam(String key, String value) {
        this.udfParams.put(key,value);
    }
}